package com.stadium.mapper;

import com.stadium.dto.SysUserDto1;
import com.stadium.entity.RTeamUser;
import com.stadium.dto.RTeamUserDto;
import com.stadium.vo.searchVo.RTeamUserSearchVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 球队人员关系表
 *
 * @author wsl
 * @email
 * @date 2021-05-04 09:39:10
 */
public interface RTeamUserMP {
    void save(RTeamUser rTeamUser);

    void saveBatch(List<RTeamUser> list);

    void delete(String id);

    void deleteBatch(String[] ids);

    void update(RTeamUser rTeamUser);

    List<RTeamUserDto> query(RTeamUserSearchVo searchVo);

    RTeamUserDto get(String id);

    int getCount(RTeamUserSearchVo searchVo);

    List<Map<String,String>> queryByTeamId(String id);

    List<SysUserDto1> getUsersByTeamId(@Param("teamId") String teamId);

    int getAuditCount(RTeamUserSearchVo searchVo);

    List<SysUserDto1> getPlayersByTeamId(String teamId);

    RTeamUser getbyTeamIdAndUserId(@Param("teamId") String teamId, @Param("userId") String userId);

    int getbyUserId(String userId);

    void deleteByUserId(String userId);

    String[] getTeamIdsByUserId(String userId);
}
